#!/bin/bash
OK=0
WARN=1
CRITICAL=2
UNKNOWN=3
PATH="/bin:/sbin:/usr/bin:/usr/sbin"

/usr/local/bin/nsls /castor/ihep.ac.cn/ > /dev/null 2>&1
if [ $? -ne 0 ]; then
	/bin/echo "castor client err:can not nsls /castor/ihep.ac.cn "
	exit $CRITICAL
else
	/bin/echo "castor client nsls directory is OK"
fi
